<html  xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <meta charset="utf-8"/>
    <title>米塔云平台管理系统</title>
    <link href="../plugins/bootstrap/bootstrap.min.css" rel="stylesheet"/>
    <link href="../plugins/font-awesome/css/all.min.css" rel="stylesheet"/>
    <link href="../customize/css/iconfont.css" rel="stylesheet">
    <link href="../customize/css/content.css" rel="stylesheet"/>
    <style>
        .amap-marker-label {
            color: #FFFFFF;
            background: rgba(0, 0, 0, 0.64);
            border-radius: 12px;
            line-height: 24px;
            height: 24px;
            padding: 0 10px;
            border: none;
            font-size: 14px;
        }

        .status-group {
            background-color: #FFFFFF;
            border-radius: 2px;
            box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
            height: 40px;
            font-size: 16px;
            padding: 8px 0;
        }

        .status-group .dropdown-toggle {
            display: inline-block;
            padding: 0 10px;
            margin: 0 5px;
            color: #333333;
        }

        .status-group .dropdown + .dropdown .dropdown-toggle {
            border-left: 1px solid #D8D8D8;
        }

        .status-group .dropdown-menu {
            margin-top: 10px;
            border-radius: 2px;
            box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
            border: none;  max-height: 400px; overflow-y: auto;
        }

        .status-group .dropdown-item:hover {
            background-color: rgba(22, 119, 255, 0.1);
            color: #1677FF
        }

        .form-control {
            border: none;
            box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
            border-radius: 2px;
            padding-right: 40px;
            background: #FFFFFF;
        }

        .toast-header {
            font-size: 18px;
            background-color: #2D86DD;
            color: #FFFFFF;
            line-height: 39px;
        }

        .toast-header .close {
            color: #FFFFFF;
            opacity: 1;
            text-shadow: none;
        }
    </style>
</head>
<body>
<div id="mapContainer" style="height: 100%;"></div>
<div shiro:hasPermission="index:map">
<div class="position-absolute" style="top: 20px; left: 20px;">
    <div class="position-relative">
        <input type="text" class="form-control mb-2" placeholder="快捷查询" oninput="findDevice()" id="param_id">
        <i class="position-absolute iconfont icon-dituyechaxun text-primary" style="top: 7px; right: 15px;"></i>
        <div class="list-group search-list-group position-absolute mt-n2 font-p16 w-100" id="listItem"
             style="z-index: 2">

        </div>
    </div>

    <div  class="d-flex status-group">
        <div class="dropdown" id="status1-d-list">
            <a class="dropdown-toggle" href="##" data-toggle="dropdown"><i
                    class="iconfont icon-gongzuo mr-1 text-powerOn"></i> 运行中 <span class="ml-1"
                                                                                  id="jobs-id">0</span></a>
            <!--<div class="dropdown-menu">
                <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备1</a>
                <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备2</a>
            </div>-->
        </div>
        <div class="dropdown" id="status2-d-list">
            <a class="dropdown-toggle" href="##" data-toggle="dropdown"><i
                    class="iconfont icon-gongzuo mr-1 text-standby"></i> 空闲 <span class="ml-1"
                                                                                  id="standby-id">0</span></a>
            <!--<div class="dropdown-menu">
        <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备1</a>
            <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备2</a>
            </div>-->
        </div>
        <div class="dropdown" id="status3-d-list">
            <a class="dropdown-toggle" href="##" data-toggle="dropdown"><i
                    class="iconfont icon-gongzuo mr-1 text-powerOff"></i> 离线 <span class="ml-1"
                                                                                   id="down-id">0</span></a>
            <!--<div class="dropdown-menu">
        <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备1</a>
            <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备2</a>
            </div>-->
        </div>
        <div class="dropdown" id="status4-d-list">
            <a class="dropdown-toggle" href="##" data-toggle="dropdown"><i
                    class="iconfont icon-gongzuo mr-1 text-fault"></i> 报警 <span class="ml-1"
                                                                                id="malfunction-id">0</span></a>
            <!--<div class="dropdown-menu">
                <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备1</a>
                <a class="dropdown-item" href="#" onclick="showDeviceInfo()">demo设备2</a>
            </div>-->
        </div>
    </div>
</div>
</div>
<div class="position-absolute" style="bottom: 0; right: 0">
    <div class="toast" data-autohide="false" style="width: 400px">
        <div class="toast-header">
            <strong class="mr-auto">| 设备信息</strong>
            <button type="button" class="ml-2 mb-1 close" data-dismiss="toast">
                <span>&times;</span>
            </button>
        </div>
        <div class="toast-body">
            <div class="d-flex justify-content-between align-items-center mb-1">
                <div class="font-p18 font-weight-bold" id="device_Name"></div>
                <div class="font-p14" id="device_Status">
                    <i class="iconfont icon-gongzuo mr-1 text-powerOn"></i> 运行中
                </div>
            </div>
            <div class="d-flex justify-content-between align-items-center pb-2 border-bottom mb-2">
                <div class="" id="device_sn"></div>
                <div class="" id="device_DetailedLike">

                </div>
            </div>
            <div class="d-flex align-items-center font-p18 mb-3">
                <div><img src="../customize/images/icon/gis-info-icon1.png" alt=""></div>
                <span class="mx-2">今日生产时长：</span>
                <strong id="today_PTime"></strong>
            </div>
            <div class="d-flex align-items-center font-p18 mb-3">
                <div><img src="../customize/images/icon/gis-info-icon2.png" alt=""></div>
                <span class="mx-2">今日能耗：</span>
                <strong id="today_EC"></strong>
            </div>
            <div class="d-flex align-items-center font-p18 mb-3">
                <div><img src="../customize/images/icon/gis-info-icon3.png" alt=""></div>
                <span class="mx-2">今日电费：</span>
                <strong id="today_EF"></strong>
            </div>
            <div class="text-primary font-p14" id="device_Address">
                <i class="iconfont icon-guanjidingwei"></i>
            </div>
        </div>
    </div>
</div>
</body>
<script src="../plugins/jquery-3.4.1.min.js"></script>
<script src="../plugins/bootstrap/bootstrap.bundle.min.js"></script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=78000b0da3a03e0c15a1e4fd78077bcc"></script>
<script src="../plugins/alert.js"></script>
<script src="../customize/js/common.js"></script>
<script src="../customize/js/CommonUtils.js"></script>
<script src="../customize/js/gis.js"></script>
</html>